from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from plone.app.layout.viewlets.common import ViewletBase


class CustomViewlet(ViewletBase):
    render = ViewPageTemplateFile('templates/custom_viewlet.pt')

    def update(self):
        # set here the values that you need to grab from the template.
        # stupid example:
        self.stupid_display = "Yay! Wh00t!"